package dao.pojo;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * DeviceLog entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "device_log", catalog = "cloud_ifw")
public class DeviceLog extends BasePojo implements java.io.Serializable {

	// Fields

	private Integer logIndex;
	private String deviceSn;
	private String deviceBindCode;
	private String deviceExecAction;
	private String deviceExecTime;
	private String deviceUpgradeVersion;
	private Short deviceExecResult;
	
	@Override
	public Object getEntityId() {
		// TODO Auto-generated method stub
		return logIndex;
	}

	// Property accessors
	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "log_index", unique = true, nullable = false)
	public Integer getLogIndex() {
		return this.logIndex;
	}

	public void setLogIndex(Integer logIndex) {
		this.logIndex = logIndex;
	}

	@Column(name = "device_sn", nullable = false, length = 32)
	public String getDeviceSn() {
		return this.deviceSn;
	}

	public void setDeviceSn(String deviceSn) {
		this.deviceSn = deviceSn;
	}

	@Column(name = "device_bind_code", nullable = false, length = 32)
	public String getDeviceBindCode() {
		return this.deviceBindCode;
	}

	public void setDeviceBindCode(String deviceBindCode) {
		this.deviceBindCode = deviceBindCode;
	}

	@Column(name = "device_exec_action", nullable = false, length = 32)
	public String getDeviceExecAction() {
		return this.deviceExecAction;
	}

	public void setDeviceExecAction(String deviceExecAction) {
		this.deviceExecAction = deviceExecAction;
	}

	@Column(name = "device_exec_time", nullable = false, length = 32)
	public String getDeviceExecTime() {
		return this.deviceExecTime;
	}

	public void setDeviceExecTime(String deviceExecTime) {
		this.deviceExecTime = deviceExecTime;
	}

	@Column(name = "device_upgrade_version", nullable = false, length = 32)
	public String getDeviceUpgradeVersion() {
		return this.deviceUpgradeVersion;
	}

	public void setDeviceUpgradeVersion(String deviceUpgradeVersion) {
		this.deviceUpgradeVersion = deviceUpgradeVersion;
	}

	@Column(name = "device_exec_result", nullable = false)
	public Short getDeviceExecResult() {
		return this.deviceExecResult;
	}

	public void setDeviceExecResult(Short deviceExecResult) {
		this.deviceExecResult = deviceExecResult;
	}

}